package com.itsq.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 史先帅
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("violation")
@ApiModel(value="Violation对象", description="")
public class Violation implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "违章信息表id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车牌号")
    @TableField("car_number")
    private String carNumber;

    @ApiModelProperty(value = "罚款")
    @TableField("fine")
    private Integer fine;

    @ApiModelProperty(value = "记分")
    @TableField("fraction")
    private Integer fraction;

    @ApiModelProperty(value = "违章时间")
    @TableField("time")
    private Date time;

    @ApiModelProperty(value = "违章行为")
    @TableField("behavior")
    private String behavior;

    @ApiModelProperty(value = "违章地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "违章代码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "违章城市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "处理编号")
    @TableField("number")
    private String number;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "cre_date",fill = FieldFill.INSERT)
    private Date creDate;

    @ApiModelProperty(value = "状态")
    @TableField("state")
    @TableLogic
    private Integer state;


    public static final String ID = "id";

    public static final String CAR_NUMBER = "car_number";

    public static final String FINE = "fine";

    public static final String FRACTION = "fraction";

    public static final String TIME = "time";

    public static final String BEHAVIOR = "behavior";

    public static final String ADDRESS = "address";

    public static final String CODE = "code";

    public static final String CITY = "city";

    public static final String NUMBER = "number";

    public static final String CRE_DATE = "cre_date";

    public static final String STATE = "state";

}
